<div class="wrapper-md"  >
	<div class="panel panel-default">
		<div ng-controller="planLaryerCtrl">
			<div class="row">

				<div class="col-sm-12" >
					<form name="form-contact" ng-submit="processForm()" class="form-horizontal">
						<div class="panel-body">

							<p class="text-muted"><span class="label label-info">频道:</span>
							<input type="text" name="cName" id="cName">
							</p> 

							<div class="form-group">
								<label class="col-sm-2 control-label">播放器区域</label>  
								<div class="col-sm-10">
									<textarea class="form-control" rows="6" placeholder="我是播放器"></textarea>
								</div>
							</div>
							
							<div class="line line-dashed b-b line-lg pull-in"></div>

							<div class="form-group">   
								<label  class="col-sm-3 control-label">名称</label>
								<div class="col-sm-5">
									<input type="text" class="form-control" placeholder="节目名称" ng-model="contact.ChannelName" >
								</div>
							</div>
						
							<div class="form-group">
								<label class="col-sm-2 control-label">开始时间</label>
								<div class="col-sm-4">
									<input type="text"  ng-model="contact.BeginTime" id="BeginTime"   onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control" />
								</div>

								<label  class="col-sm-2 control-label">结束时间</label>
								<div class="col-sm-4">
									<input type="text"  ng-model="contact.EndTime" id="EndTime"   onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control" />
								</div>

								<div class="line line-dashed b-b line-lg pull-in"></div>

								<!--隐藏字段-->
								<input type="hidden"  ng-model="contact.Id"  >
								<input type="hidden" id="channelId" ng-model="channelId"  >
								<input type="hidden"  ng-model="contact.ChannelName"  >
								<input type="hidden"  ng-model="contact.BeginTime"  >
								<input type="hidden"  ng-model="contact.EndTime"  >
								<input type="hidden"  ng-model="contact.AdderId"  >
								<input type="hidden"  ng-model="contact.AdderName"  >
								<input type="hidden"  ng-model="contact.AddTime"  >
								<input type="hidden"  ng-model="contact.UpdaterId"  >
								<input type="hidden"  ng-model="contact.UpdaterName"  >
								<input type="hidden"  ng-model="contact.UpdateTime"  >
								<input type="hidden"  ng-model="contact.DelFlag" ng-init="contact.DelFlag='0'" >

								<!--隐藏字段-->

								<footer class="panel-footer text-right bg-light lter">
									<button type="submit" class="btn btn-success">确认</button>
									<button type="button" class="btn btn-warning" ng-click='Cancel()'>取消</button>
								</footer>
							</div>
						</form>
					</div>
				</div>

			</div>
		</div>
	</div>

<!--angularjs-->
<script type="text/javascript">

app.controller('planLaryerCtrl', function ($scope, $state, $stateParams,$http,$window) {

   var channelId = $stateParams.channelId;
   var channelUrl = API_URL+"channel_info?query=delflag:0,Id:"+channelId;
   var Channel = MY_ASYNC_AJAX(channelUrl)[0];
   $("#cName").val(Channel.ChannelName);
   $scope.contact = Channel;
   $scope.contact.ChannelName = Channel.ChannelName+'_'+getUUID();
  	//表单提交开始
	$scope.processForm= function (){


	}
	//取消
	$scope.$window = $window;
	$scope.Cancel=function(){
	 top.layer.closeAll();
	}
})
</script>
<!--angularjs-->










